package com.gouqi.lpl.controller;

import com.gouqi.lpl.domain.Winner;
import com.gouqi.lpl.service.WinnerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/winner")
public class WinnerController {

    @Resource
    private WinnerService winnerService;

    @GetMapping("/get")
    private List<Winner> getWinner() {
        List<Winner> winnerList = winnerService.getWinner();
        return winnerList;
    }


}
